<?=$this->load->view('public/v_html')?>
<title><?=$this->_lang['geili']?></title>
</head>
<body>
<?php if(isset($usermail)):?>
<?=$this->load->view('public/v_header',$usermail)?>
<?php else: ?>
<?=$this->load->view('public/v_header')?>
<?php endif; ?>
<div id="main-content">
	<div class="content-box">
		<div class="content-box-header">
			<h3><?=$this->_lang['green']?></h3>
			</h3>&nbsp;<h3><?=$this->_lang['QQ']?></h3>&nbsp;<h3><?=$this->_lang['union_login'] ?></h3>
			<a href="<?=site_url('login/qq')?>" ><img src="<?=base_url('images/qq.png')?>" /></a>
			<a href="<?=site_url('login/sina')?>" ><img src="<?=base_url('images/sina.png')?>" /></a>
			<a href="<?=site_url('login/neteasy')?>" ><img src="<?=base_url('images/163.png')?>" /></a>
					<script type="text/javascript">
															(function(){
															var p = {
															url:location.href,
															showcount:'1',/*是否显示分享总数,显示：'1'，不显示：'0' */
															desc:'给力网是一个专业的淘宝购物返利网站,好用,简单,不掉一笔单,绝对是居家购物必备网站',/*默认分享理由(可选)*/
															summary:'给力网是一个专业的淘宝购物返利网站,好用,简单,不掉一笔单,绝对是居家购物必备网站',/*分享摘要(可选)*/
															title:'给力网',/*分享标题(可选)*/
															site:'给力网',/*分享来源 如：腾讯网(可选)*/
															pics:'http://www.geili0574.com/images/logo/logo2.png', /*分享图片的路径(可选)*/
															style:'103',
															width:135,
															height:20
															};
															var s = [];
															for(var i in p){
															s.push(i + '=' + encodeURIComponent(p[i]||''));
															}
															document.write(['<a version="1.0" class="qzOpenerDiv" href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?',s.join('&'),'" target="_blank">分享</a>'].join(''));
															})();
															</script>
															<script src="http://qzonestyle.gtimg.cn/qzone/app/qzlike/qzopensl.js#jsdate=20111201" charset="utf-8"></script>
			<ul class="content-box-tabs">
				<li><a href="#tab1" class="default-tab"><?=$this->_lang['green']?></a></li>
			</ul>
		<div class="clear"></div>
		</div>
	<div class="content-box-content">
	<? 
	if(isset($tid) && $tid>0){
		echo '<div align="center">'.$this->_lang['g_dear'].$uid.$this->_lang['g_order'].$tid.$this->_lang['g_submit'].'</div>';
	}
	else{
		if($error){
			echo '<div align="center">'.$msg.'</div>';
		}
		else{
			echo '<table><tr><th>'.$this->_lang['g_alipay'].'</th><th>'.$this->_lang['g_cash'].'</th><th>'.$this->_lang['g_trade_id'].'</th><th>'.$this->_lang['g_can_rebate'].'</th><th>'.$this->_lang['g_is_rebate'].'</th><th>'.$this->_lang['g_submit_date'].'</th><th>'.$this->_lang['g_rebate_date'].'</th></tr>';
			foreach($res as $key){
				if($key['rid']){
					echo '<tr><td>'.$key['tao_user'].'</td><td>'.$key['rebate_cash'].'</td><td>'.$key['trade_id'].'</td><td>'.$key['can_rebate'].'</td><td>'.$key['is_rebate'].'</td><td>'.$key['submit_date'].'</td><td>'.$key['rebate_date'].'</td></tr>';
				}
			}
			echo '</table>';
	?>
	<br/>
		<form method="post" action="<?=base_url('index.php/green/add_rec') ?>">
<?=$this->_lang['g_trade_id']?>:<input type="text" class="text-input small-input" id="trade_id" name="trade_id" /><br/>
<?=$this->_lang['g_alipay_id']?>:<input type="text" class="text-input small-input" id="alipay" name="alipay" /><br/>
<input class="button" type="submit" value="提交"></input>
</form>
<?} }?>

	</div>
</div>
<div id="footer"><small> <?=$this->_lang['copy_right']?> | Powered by <a
	href="http://www.geili0574.com">TBCOM</a> | <a href="#">Top</a> </small>
</div>
</div>
</body>
</html>